﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using Microsoft.Reporting.WinForms;

namespace Aulac.Client.Reports.Ems.WinFrmBase
{
    public class ShowRptViewer
    {
        public static void ShowRptView(XmlDataDocument xmlData, string fileName)
        {
            Aulac.Client.Reports.Ems.WinFrmBase.RptViewerBase frm = new RptViewerBase();
            frm.OnShowReport(xmlData, fileName);
            frm.ShowDialog();
        }
        private void TEST(ReportViewer pRptViewer)
        {
            ReportParameterInfoCollection reportParameterInfoCollection = pRptViewer.ServerReport.GetParameters();

            ReportParameterInfo rpi = reportParameterInfoCollection[0];
            //If the paramete is invisible.
            if (rpi.Prompt != "")
            {
                //Insert code here.
            }
        }
    }
}
